#include"find.h"

void test()
{
  int ar[] = {3, 2, 7, 0, 1, 4};
  cout << find(ar, (sizeof(ar)/sizeof(ar[0])), 4) << endl; // 0 1 2 3 4 7  返回4
  for (int i = 0; i < 6; i++)
    cout << ar[i] << " ";
  cout << endl;
  char arr[] = "bceda";
  cout << find(arr, (sizeof(arr)/sizeof(arr[0]) - 1), 'a') << endl; // a b c d e   返回4
  cout << arr << endl;
}

int main()
{
  test();
  return 0;
}
